package com.example.backend.mapper;

import com.example.backend.entity.StorageIn;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface StorageInMapper {
    int insert(StorageIn storageIn);
    StorageIn selectById(Long id);
    List<StorageIn> selectAll();
    int update(StorageIn storageIn);
    int deleteById(@Param("id") Long id);
    int deleteAll();
//    List<StorageIn> selectByOrderNumber(String orderNumber);
    List<StorageIn> selectUnOutByCompanyAndPort(@Param("companyId") Long companyId, @Param("portId") Long portId);
    List<StorageIn> selectByPortId(Long portId);
    List<StorageIn> selectUnOutByCompanyAndPortOrderByDate(@Param("companyId") Long companyId, @Param("portId") Long portId);
    List<StorageIn> selectByCompanyAndWarehouse(@Param("companyId") Long companyId, @Param("warehouseId") Long warehouseId);
} 